package com.cmy.baseGrammar;
public class TernaryOpr {
    public static void main(String[] args) {
        int score = 89;
        //x?y:z  if x==true 返回y 否则返回z
        String type = score<60 ? "不及格":"及格";
        System.out.println(type);
    }
}

    